<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="fullscreen">
  <div class="scroll_contentx">
    <div class="topfixed">
      <div class="t_left"><a href="/index.php?m=shop&shopid={$shop.shopid}" class="goBack"><i class="back"></i></a></div>
      <div class="t_main">{$shop.shopname}</div>
      <div class="t_right"><a href="javascript:;" class="{if $shop.isfav}fav_shop_cancel{else}fav_shop_add{/if}" v="{$shop.shopid}"><i class="ico"></i></a></div>
    </div>
    <div class="paddingheight"></div>
    <div class="tabs">
					<a href="/index.php?m=shop&shopid={$shop.shopid}" class="item">商品</a>
					<a href="/index.php?m=shop&a=comment&shopid={$shop.shopid}" class="item active">评价</a>
					<a href="/index.php?m=shop&a=detail&shopid={$shop.shopid}" class="item">商家</a>
				</div>
     
             
            
             
            
            <div class="comblock shopraty">
            	<div class="haoping">
                	<div class="num">{$shop.raty_grade|*:10}%</div>
                	<div class="t">好评率</div>
                </div>    
                <div class="ratyshow">
                	<div>服务态度 <span class="vote-star"><i style="width:{$shop.raty_grade|*:10}%"></i></span> <span class="vote-number">{$shop.raty_grade}</span></div>
                    <div>菜品评分 <span class="vote-star"><i style="width:{$shop.raty_grade_product|*:10}%"></i></span> <span class="vote-number">{$shop.raty_grade_product}</span></div>
                </div> 
            </div>
           <div class="comblock">
           		<style>
				.shopraty .haoping{width:5em; float:left; margin-right:-8em; border-right:1px solid #ccc;}
				.shopraty .haoping .num{ font-size:1.2em; color:#E13F01}
				.shopraty .haoping .t{ font-size:0.8em;}
				.shopraty .ratyshow{ margin-left:9em;font-size:0.8em; height:4em;}
				.vote-star{
					display:inline-block;
					margin-right:6px;
					width:50px;
					height:10px;
					overflow:hidden;
					vertical-align:middle;
					background:url(/static/images/star.gif)  repeat-x 0 -10px;
					}
				.vote-star i{
					display:block;
					height:10px;
					background:url(/static/images/star.gif) repeat-x 0 0;}
				.vote-number{
					vertical-align:middle;
					font-family:微软雅黑, Verdana, Geneva, sans-serif;
					font-size:12px;}
                .comment-list {}
				.comment-list .item{ border-bottom:1px solid #ccc; margin-bottom:1px; padding-top:5px; padding-bottom:5px;}
				.comment-list .row-raty{ font-size:0.8em; height:2em;}
				.comment-list .row-raty .user{float:right;}
				.comment-list .item .content{font-size:1em;}
				.comment-list .row-time{color:#aaa; font-size:0.7em;}
                </style>
                
                <div class="tabs">
                	<a href="/index.php?m=shop&a=comment&shopid={$shop.shopid}" class="item {if get('t') eq ''}active{/if}">全部</a>
                    <a href="/index.php?m=shop&a=comment&shopid={$shop.shopid}&t=good" class="item {if get('t') eq 'good'}active{/if}">满意</a>
                    <a href="/index.php?m=shop&a=comment&shopid={$shop.shopid}&t=bad" class="item {if get('t') eq 'bad'}active{/if}">不满意</a>
                </div>
                
                <div class="comment-list">
                	{foreach item=c from=$comment_list}
                	<div class="item">
                    	<div class="row-raty">
                        	<span class="vote-star"><i style="width:{$c.grade|*:20}%"></i></span>
                            <span class="user">{$c.nickname} 
                            <span class="head"><img width="20" style="vertical-align:middle" onerror="err_user_head(this)" src="{$c.user_head|images_site}.100x100.jpg">
                            </span>
                            </span>
                        </div>
                        <div class="content">{$c.content}</div>
                        <div class="row-time">{$c.dateline|date:Y-m-d H:i:s}</div>
                    </div>
                    {/foreach}
                </div>
                
                <div class="pages">{$pagelist}</div>
           </div>  
            
        </div>
  </div>
</div>
{include file="footer.html"}
</body>
</html>